package com.lidong.day06;

public class Demo {
    public static void main(String[] args) {
        Student stu = new Student();
        stu.setUsername("张三");
        stu.setAge(23);
        System.out.println(stu.getUsername()+"----"+stu.getAge());

        Teacher t = new Teacher();
        t.setUsername("张老师");
        t.setAge(33);
        System.out.println(t.getUsername()+"-------"+t.getAge());


    }
}
